//
//  main.m
//  Synthesize3
//
//  Created by cora1n on 14-8-5.
//  Copyright (c) 2014年 devwu. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "DianNao.h"
#import "JianPan.h"
#import "ShuBiao.h"

int main(int argc, const char * argv[])
{
//    DianNao * d = [[DianNao alloc]init];
//    d.jianPan = [[JianPan alloc]init];
//    d.shuBiao = [[ShuBiao alloc]init];
//    
//    
//    while (YES) {
//        NSLog(@"hello!");
//        sleep(1);
//    }
//    
//    [d start];
//    //睡眠操作,秒
//    sleep(3);
//    [d stop];
    NSMutableArray *mArray3 = [NSMutableArray
                               arrayWithCapacity:3];
    [mArray3 addObject:@"Zbc"];
    [mArray3 addObject:@"cbc"];
    [mArray3 addObject:@"Bbc"];
    [mArray3 addObject:@"abc"];
    [mArray3 sortUsingSelector:@selector(compare:)];
    NSLog(@"对字符串使用选择器排序后为：");
    for (int i=0; i<[mArray3 count]; i++)
    {
        NSLog(@"%@",[mArray3 objectAtIndex:i]);
    }
    
    
    
    return 0;
}

